Ext.define("ECAT.view.HomePage", {
    extend: 'Ext.Img',
    config: {
    	id : 'homePage',
    	mode:false
    },
    beforeInitialize: function() {
		this.callParent(arguments);
        this.element.on({
            swipe: 'onSwipe',
            scope: this
        });
    },
    onSwipe : function(e){
//    	this.fireEvent('swipe',this,e);
    	if(e.direction == 'left'){
   		 Ext.Viewport.animateActiveItem(
			        Ext.getCmp('list_img_all'),  
					{  
					    type: 'slide',  
					    direction: 'left',
					    duration : 900
					}
			    );
   		 setTimeout(function(){
   			 // 显示菜单
   			 Ext.getCmp('btn_menu_up').show();
   			 if(Ext.getCmp('buttombar')){
   				 Ext.getCmp('buttombar').hide();
   			 }
   			 if(Ext.getCmp('topbar')){
   				 Ext.getCmp('topbar').hide();
   			 }
   		 },900);
   	}
    }
    
});